print dialog: Apply initial capabilities
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 Jul 2016 22:08:38 +0000 (18:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Jul 2016 22:08:38 +0000 (18:08 -0400)
I was struggling to understand why calling
gtk_print_unix_dialog_set_manual_capabilities (...,0)
was not having the expected effect of hiding the preview
button. The initial capabilities were not applied at all.

gtk/gtkprintunixdialog.c

index fbdf51cf4cd8d269ec0be7b4ff93da5d8c6f9472..82d434a77306dbf0d38edfdb17204a8d2e8afe6d 100644 (file)
@@ -825,6 +825,8 @@ gtk_print_unix_dialog_constructed (GObject *object)
        gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button);
        g_object_unref (button);
     }
+
+  update_dialog_from_capabilities (GTK_PRINT_UNIX_DIALOG (object));
 }
 
 static void